package com.fp.cyclops.demo;

import org.junit.Test;

import java.util.function.BinaryOperator;

/**
 * Created by user on 17/9/13.
 */
public class BinaryOperatorTest {

    @Test
    public void test(){
        BinaryOperator<String> concat = (a, b)->a+b;
        String a = concat.apply(concat.apply("hello","world"),"c");
        String b = concat.apply("hello",concat.apply("world","c"));
        System.out.println(a);
        System.out.println(b);
    }
}
